import request from '@/utils/request'

// 查询资源类型列表
export function listSurResourceCategory(query) {
  return request({
    url: '/sources/surResourceCategory/list',
    method: 'get',
    params: query
  })
}

// 查询资源类型列表
export function listSurResourceCategoryAll(query) {
  return request({
    url: '/sources/surResourceCategory/listAll',
    method: 'get',
    params: query
  })
}

// 查询资源类型详细
export function getSurResourceCategory(id) {
  return request({
    url: '/sources/surResourceCategory/' + id,
    method: 'get'
  })
}

// 新增资源类型
export function addSurResourceCategory(data) {
  return request({
    url: '/sources/surResourceCategory',
    method: 'post',
    data: data
  })
}

// 修改资源类型
export function updateSurResourceCategory(data) {
  return request({
    url: '/sources/surResourceCategory',
    method: 'put',
    data: data
  })
}

// 删除资源类型
export function delSurResourceCategory(id) {
  return request({
    url: '/sources/surResourceCategory/' + id,
    method: 'delete'
  })
}
